home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
man
/
cmds.fmt
/
ar.sprite.man
< prev
next >
Wrap
Text File
|
1992-04-14
|
4KB
|
133 lines
AR User Commands AR
NNAAMMEE
ar - archive and library maintainer
SSYYNNOOPPSSIISS
aarr key [ posname ] afile name ...
DDEESSCCRRIIPPTTIIOONN
_A_r maintains groups of files combined into a single archive
file. Its main use is to create and update library files as
used by the loader. It can be used, though, for any similar
purpose. NN..BB:: This version of _a_r uses a ASCII-format
archive which is portable among the various machines running
UNIX. Programs for dealing with older formats are avail-
able: see _a_r_c_v(8).
_K_e_y is one character from the set ddrrqqttppmmxx,, optionally con-
catenated with one or more of vvuuaaiibbccllooLL.. _A_f_i_l_e is the
archive file. The _n_a_m_e_s are constituent files in the
archive file. The meanings of the _k_e_y characters are:
dd Delete the named files from the archive file.
rr Replace the named files in the archive file. If the
optional character uu is used with rr,, then only those
files with `last-modified' dates later than the archive
files are replaced. If an optional positioning charac-
ter from the set aabbii is used, then the _p_o_s_n_a_m_e argument
must be present and specifies that new files are to be
placed after (aa) or before (bb or ii) _p_o_s_n_a_m_e. Otherwise
new files are placed at the end.
qq Quickly append the named files to the end of the
archive file. Optional positioning characters are
invalid. The command does not check whether the added
members are already in the archive. Useful only to
avoid quadratic behavior when creating a large archive
piece-by-piece.
tt Print a table of contents of the archive file. If no
names are given, all files in the archive are tabled.
If names are given, only those files are tabled.
pp Print the named files in the archive.
mm Move the named files to the end of the archive. If a
positioning character is present, then the _p_o_s_n_a_m_e
argument must be present and, as in rr,, specifies where
the files are to be moved.
xx Extract the named files. If no names are given, all
files in the archive are extracted. In neither case
does xx alter the archive file. Normally the `last-
Sprite v1.0 April 29, 1985 1
AR User Commands AR
modified' date of each extracted file is the date when
it is extracted. However, if oo is used, the `last-
modified' date is reset to the date recorded in the
archive.
vv Verbose. Under the verbose option, _a_r gives a file-
by-file description of the making of a new archive file
from the old archive and the constituent files. When
used with tt,, it gives a long listing of all information
about the files. When used with pp, it precedes each
file with a name.
cc Create. Normally _a_r will create _a_f_i_l_e when it needs
to. The create option suppresses the normal message
that is produced when _a_f_i_l_e is created.
ll Local. Normally _a_r places its temporary files in the
directory /tmp. This option causes them to be placed
in the local directory.
LL No lock. By default, _a_r performs an _f_l_o_c_k() call when
accessing archives. If this modifier is specified, no
lock is obtained. This is used by _r_a_n_l_i_b, which locks
the archive before calling _a_r.
FFIILLEESS
/tmp/v* temporaries
SSEEEE AALLSSOO
lorder(1), ld(1), ranlib(1), flock(2), ar(5), arcv(8)
BBUUGGSS
If the same file is mentioned twice in an argument list, it
may be put in the archive twice.
The `last-modified' date of a file will not be altered by
the oo option if the user is not the owner of the extracted
file, or the super-user.
Sprite v1.0 April 29, 1985 2